package com.zhiche.lisa.bms.pojo.vo.psup;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linbao
 * @date 2019-06-20
 */
@Data
@ToString
public class PsupPriceRateVO {

    /**
     * 主键
     */
    private Long id;
    /**
     * 车队id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "车队id", name = "fleetId", dataType = "Long")
    private Long fleetId;
    /**
     * 车队名称
     */
    @ApiModelProperty(value = "车队名称", name = "fleetName", dataType = "String")
    private String fleetName;
    /**
     * 上下浮动的价格类型; 0-总运费, 1-劳务费, 2-油费
     */
    @ApiModelProperty(value = "上下浮动的价格类型; 0-总运费, 1-劳务费, 2-油费", name = "floatPriceType", dataType = "Integer")
    private Integer floatPriceType;
    /**
     * 浮动比例
     */
    @ApiModelProperty(value = "浮动比例", name = "floatRate", dataType = "BigDecimal")
    private BigDecimal floatRate;
    /**
     * 生效日期
     */
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "生效日期", name = "effectiveDate", dataType = "Date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "失效日期", name = "invalidDate", dataType = "Date")
    private Date invalidDate;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", name = "gmtCreate", dataType = "Date")
    private Date gmtCreate;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", name = "creatorName", dataType = "String")
    private String creatorName;
    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人", name = "activitiName", dataType = "String")
    private String activitiName;
}
